package com.jd;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication
@MapperScan("com.jd.*.mapper")//扫描多模块的mapper接口
@EnableCaching // 开启spring缓存
@ServletComponentScan(value = {"com.jd.*.listener"})
public class PetHomeApplication {

    public static void main(String[] args){
        SpringApplication.run(PetHomeApplication.class,args);
    }
}